package com.microservice.salmon.db.entities;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "t_charge_items")
public class ChargeItem {
    @Id
    private Integer id;

    @Column(name = "charge_money")
    private Integer chargeMoney;

    @Column(name = "give_money")
    private BigDecimal giveMoney;

    @Column(name = "item_sort")
    private Integer itemSort;

    @Column(name = "data_flag")
    private Byte dataFlag;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return charge_money
     */
    public Integer getChargeMoney() {
        return chargeMoney;
    }

    /**
     * @param chargeMoney
     */
    public void setChargeMoney(Integer chargeMoney) {
        this.chargeMoney = chargeMoney;
    }

    /**
     * @return give_money
     */
    public BigDecimal getGiveMoney() {
        return giveMoney;
    }

    /**
     * @param giveMoney
     */
    public void setGiveMoney(BigDecimal giveMoney) {
        this.giveMoney = giveMoney;
    }

    /**
     * @return item_sort
     */
    public Integer getItemSort() {
        return itemSort;
    }

    /**
     * @param itemSort
     */
    public void setItemSort(Integer itemSort) {
        this.itemSort = itemSort;
    }

    /**
     * @return data_flag
     */
    public Byte getDataFlag() {
        return dataFlag;
    }

    /**
     * @param dataFlag
     */
    public void setDataFlag(Byte dataFlag) {
        this.dataFlag = dataFlag;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}